package com.vidyu.datalayer.dataaccesscomponents;

import com.vidyu.businesslayer.businessentities.UserInProject;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: eyalsa
 * Date: 28/02/12
 * Time: 14:37
 * Dao object for ProjectTypeDao
 */
public interface UserInProjectDao {
    long save(UserInProject userInProject);
    UserInProject findById(long id);
    void update(UserInProject userInProject);
    List<UserInProject> getUsersInProjectByStatus(long projectId, UserInProject.ProjectStatus status);

//    int getNumOfRegretContractors(long projectId);
//    int getNumOfApprovedContractors(long projectId);
//    int getNumOfCompletedContractors(long projectId);
}
